#ifndef SERIALPORTASSISTANT_H
#define SERIALPORTASSISTANT_H

#include <QWidget>
#include <QString>
#include <QtSerialPort/QSerialPort>

QT_BEGIN_NAMESPACE
namespace Ui { class SerialPortAssistant; }
QT_END_NAMESPACE

class SerialPortAssistant : public QWidget
{
    Q_OBJECT

public:
    SerialPortAssistant(QWidget *parent = nullptr);
    ~SerialPortAssistant();
    QSerialPort *serialPort;

private slots:
    void on_btOpenSerial_clicked();

    void on_btCloseSerial_clicked();

    void on_btSend_clicked();

    void serialPortReadReady_slot();

private:
    Ui::SerialPortAssistant *ui;
};
#endif // SERIALPORTASSISTANT_H
